#include <bits/stdc++.h>
using namespace std;

const int N = 100000;
vector<int> divi[N + 10];
int sg[N + 10];

int main() {

    for (int i = 1; i <= N; i++) {
        for (int j = 2 * i; j <= N; j += i) {
            divi[j].push_back(i);
        }
    }

    sg[1] = 0;
    for (int i = 2; i <= N; i++) {
        vector<bool> seen(150, false);
        for (int d : divi[i]) {
            if (sg[d] < 150) {
                seen[sg[d]] = true;
            }
        }
        int mex = 0;
        while (seen[mex]) mex++;
        sg[i] = mex;
    }


    int T = 1;
    while (T--) {
        int n;
        cin >> n;
        int ans = 0;
        for (int i = 0; i < n; i++) {
            int x;
            cin >> x;
            ans ^= sg[x];
        }
        if (ans != 0)
            cout << "Anna";
        else
            cout << "Bruno";
    }
    return 0;
}